#include <winsock2.h>
#include <iostream>
#include "YogaService.h"
#include <mysql.h>

using std::cin;
using std::cout;
using std::endl;
using std::string;

int main()
{
    YogaService* yogaService = new YogaService();
    yogaService->startService();
    string command;
    cout << "> ";
    getline(cin, command);
    while (command != "quit") {
        if (!yogaService->handleCommand(command))
            cout << "请重新输入......" << endl;
        cout << "> ";
        getline(cin, command);
    }
    return 0;
}